<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    *{
        margin:0 auto;
    }
    div{
        width:100%;
        /* display: flex; */
        /* position: relative; */
    }
    img{
        width:100px;
        height:100px;
        float:left;
        /* margin-right:10px; */
    }
    p{
        /* flex:1 */
        float:right;
        width:100%;
        display: inline-block;
    }
</style>
<body>
    <div class="div">
        <img src="../题/img/2.png" alt="">
        <p>134</p>
    </div>
    <script>
        console.log("script start")
        async function asyncA(){
            await asyncB();
            console.log("asyncA end")
        }
        async function asyncB(){
            console.log("asyncB end")
        }
        asyncA()
        setTimeout(()=>{
            console.log("setTimeout")
        },0)
        new Promise((resolve,reject)=>{
            console.log("promise start")
            resolve()
        }).then(()=>{
            console.log("promise end")
        })
        console.log("script end")

// script start
// asyncB end
// promise start
// script end
// asyncA end
// promise end
// setTimeout









    </script>
</body>
</html>